package c.e.a.c.f;

import android.view.View;
import b.i.k.o;
import b.i.k.y.d;
import com.google.android.material.behavior.SwipeDismissBehavior;
import java.util.Objects;
import java.util.WeakHashMap;

/* compiled from: SwipeDismissBehavior */
public class a implements d {
    public final /* synthetic */ SwipeDismissBehavior a;

    public a(SwipeDismissBehavior swipeDismissBehavior) {
        this.a = swipeDismissBehavior;
    }

    public boolean a(View view, b.i.k.y.d.a aVar) {
        boolean z = false;
        if (!this.a.B(view)) {
            return false;
        }
        WeakHashMap weakHashMap = o.a;
        Object obj = view.getLayoutDirection() == 1 ? 1 : null;
        int i = this.a.c;
        if ((i == 0 && obj != null) || (i == 1 && obj == null)) {
            z = true;
        }
        int width = view.getWidth();
        if (z) {
            width = -width;
        }
        o.j(view, width);
        view.setAlpha(0.0f);
        Objects.requireNonNull(this.a);
        return true;
    }
}
